<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox">
                <div class="ibox-content">
                    <a  href="<?=url('/miniapp/minsu.manage/create',['minsu_id'=>$minsu_id])?>"  style="float: left" type="button" class="btn btn btn-primary"> <i class="fa fa-search"></i>添加管理员</a>
                    <p style="float: left; line-height: 38px; font-size: 2rem;color: #a1a1a1">TIPS:所有管理员对该商户后台有所有操作的权限请慎重添加</p>
                    <div style="clear: both"></div>
                    <div class="clients-list">
                        <div class="tab-content">
                            <div class="full-height-scroll">
                                <div class="table-responsive">
                                    <table class="table table-striped table-hover">
                                        <tbody>
                                        <?php foreach($list as $val) { ?>
                                        <tr>
                                            <td><a data-toggle="tab" href="" class="client-link"><?=$val->role_name?></a>
                                            <td><a data-toggle="tab" href="" class="client-link"><?=$val->mange_name?></a>
                                            <td><a data-toggle="tab" href="" class="client-link"><?=$val->mobile?></a></td>
                                            <td><a data-toggle="tab" href="" class="client-link"><?=empty($val->last_time) ? '没有登录' : date("Y-m-d H:i:s",$val->last_time) ?></a></td>
                                            <td><a data-toggle="tab" href="" class="client-link"><?=empty($val->last_ip) ? '没有登录' : $val->last_ip?></a></td>
                                            <td class="client-status"><?=$val->is_lock == 1 ? '<span class="label label-warning">已锁定</span>' : '<span class="label label-primary">正常</span>'?>
                                            </td>
                                            <td>
                                                <a title="锁定该管理员" mini="act" href="<?=url('/miniapp/minsu.manage/lock',['manage_id'=>$val->manage_id])?>"  class="btn btn-xs btn-info"><i class=" fa <?=$val->is_lock == 1 ? 'fa-lock' : 'fa-unlock-alt'?> bigger-120"></i><?=$val->is_lock == 1 ? '解锁' : '锁定'?></a>
                                                <a title="编辑管理员" href="<?=url('/miniapp/minsu.manage/edit',['manage_id'=>$val->manage_id])?>" class="btn btn-xs btn-info"><i class=" fa fa-edit bigger-120"></i>编辑</a>
                                                <a title="删除管理员" mini="act" href="<?=url('/miniapp/minsu.manage/delete',['manage_id'=>$val->manage_id])?>" class="btn btn-xs btn-warning"><i class="fa fa-trash bigger-120"></i>删除</a>
                                            </td>
                                        </tr>
                                        <?php } ?>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
